Foxit PDF RDK
FoxitPDFViewCtrl.SDKUtil Class Reference

SDKUtil Class. More...

Static Public Member Functions

static intersect (a, b)
 

Detailed Description

SDKUtil Class.

Member Function Documentation

◆ intersect()

static FoxitPDFViewCtrl.SDKUtil.intersect ( ,
 
)
static

If the a rectangle intersects b rectangle, return true and set a rectangle to that intersection, otherwise return false and do not change a.

Parameters
aThe first rectangle being tested for intersection (in pdf coordinate.)
bThe second rectangle being tested for intersection (in pdf coordinate.)
Returns
true if the a rectangle and b intersect (and a rectangle is then set to that intersection) else return false and do not change a rectangle.